package com.library.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Userinfo entity. @author MyEclipse Persistence Tools
 */

public class Userinfo implements java.io.Serializable {

	// Fields

	private Integer userid;
	private Roleinfo roleinfo;
	private String username;
	private String userclass;
	private String userpwd;
	private Set bookinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Userinfo() {
	}

	/** minimal constructor */
	public Userinfo(Integer userid) {
		this.userid = userid;
	}

	/** full constructor */
	public Userinfo(Integer userid, Roleinfo roleinfo, String username,
			String userclass, String userpwd, Set bookinfos) {
		this.userid = userid;
		this.roleinfo = roleinfo;
		this.username = username;
		this.userclass = userclass;
		this.userpwd = userpwd;
		this.bookinfos = bookinfos;
	}

	// Property accessors

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Roleinfo getRoleinfo() {
		return this.roleinfo;
	}

	public void setRoleinfo(Roleinfo roleinfo) {
		this.roleinfo = roleinfo;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserclass() {
		return this.userclass;
	}

	public void setUserclass(String userclass) {
		this.userclass = userclass;
	}

	public String getUserpwd() {
		return this.userpwd;
	}

	public void setUserpwd(String userpwd) {
		this.userpwd = userpwd;
	}

	public Set getBookinfos() {
		return this.bookinfos;
	}

	public void setBookinfos(Set bookinfos) {
		this.bookinfos = bookinfos;
	}

}